export const p = (param, replace='nav') => {

	if (replace == 'nav') {
		uni.navigateTo({
			url: param,
			animationType: 'pop-in',
			animationDuration: 500
		})
	} else if (replace == 'swi') {
		uni.switchTab({
			url: param,
			animationType: 'pop-in',
			animationDuration: 500
		})
	} else if (replace == 'rel') {
		uni.reLaunch({
			url: param,
			animationType: 'pop-in',
			animationDuration: 500
		})
	} else if (replace == 'red') {
		uni.redirectTo({
			url: param,
			animationType: 'pop-in',
			animationDuration: 500
		})
	}
}